]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Fix urgency hint
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 27 Oct 2013 10:16:14 +0000 (11:16 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Oct 2013 11:28:37 +0000 (12:28 +0100)
We currently mark notifications as urgent which merely contain the
'urgent' property, even when set to false. Look at the actual value
instead.

https://bugzilla.gnome.org/show_bug.cgi?id=710596

js/ui/notificationDaemon.js

index b956db06c19d44df388e9b433304bae191d1de47..a1b76ab15630b91c4ea88d41defcfbe145cbc655 100644 (file)
@@ -732,7 +732,8 @@ const GtkNotificationDaemonNotification = new Lang.Class({
               "default-action": defaultAction,
               "default-action-target": defaultActionTarget } = notification;
 
-        this.setUrgency(urgent ? MessageTray.Urgency.CRITICAL : MessageTray.Urgency.NORMAL);
+        this.setUrgency(urgent.unpack() ? MessageTray.Urgency.CRITICAL
+                                        : MessageTray.Urgency.NORMAL);
 
         if (buttons) {
             buttons.deep_unpack().forEach(Lang.bind(this, function(button) {